
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>Minimal and Clean Sign up / Login and Forgot Form by FreeHTML5.co</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="Free HTML5 Template by FreeHTML5.co" />
	<meta name="keywords" content="free html5, free template, free bootstrap, html5, css3, mobile first, responsive" />
	

  

  	<!-- Facebook and Twitter integration -->
	<meta property="og:title" content=""/>
	<meta property="og:image" content=""/>
	<meta property="og:url" content=""/>
	<meta property="og:site_name" content=""/>
	<meta property="og:description" content=""/>
	<meta name="twitter:title" content="" />
	<meta name="twitter:image" content="" />
	<meta name="twitter:url" content="" />
	<meta name="twitter:card" content="" />

	<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
	<link rel="shortcut icon" href="favicon.ico">

	<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,300' rel='stylesheet' type='text/css'>
	
	<link rel="stylesheet" href="__CSS__/bootstrap.min.css">
	<link rel="stylesheet" href="__CSS__/animate.css">
	<link rel="stylesheet" href="__CSS__/login_style.css">

		<script src="__JS__/jquery.min.js"></script>
		<script type="text/javascript" src="__JS__/jquery.validate.js"></script>
	<!-- Modernizr JS -->
	<script src="__JS__/modernizr-2.6.2.min.js"></script>
	<!-- FOR IE9 below -->
	<!--[if lt IE 9]>
	<script src="__JS__/respond.min.js"></script>
	<![endif]-->

	</head>
	<body class="style-2">

		<div class="container">
			<div class="row">
				<div class="col-md-12 text-center"></div></div>
			<div class="row">
				<div class="col-md-4">
					

					<!-- Start Sign In Form -->
					<form action="{:url('Login/checklogin')}" class="fh5co-form animate-box" data-animate-effect="fadeInLeft" method="post">
						<h2>登录</h2>
						<div class="form-group">
							<label for="username" class="sr-only">用户姓名</label>
							<input type="text" class="form-control" id="username" placeholder="用户姓名" name="username" autocomplete="off">
						</div>

						<div class="form-group">
							<label for="password" class="sr-only">用户密码</label>
							<input type="password" class="form-control" id="password" placeholder="用户密码" name="password" autocomplete="off">
						</div>

						<!--<div class="form-group">-->
							<!--<p>没有注册? <a href="{:url('Login/sign')}">注册</a> | <a href="{:url('Login/forgot')}">忘记密码?</a></p>-->
						<!--</div>-->
						<div class="form-group">
							<input type="submit" value="登录" class="btn btn-primary">
						</div>
					</form>
					<!-- END Sign In Form -->

				</div>
			</div>
		</div>
	
	<!-- jQuery -->
	<script src="__JS__/jquery.min.js"></script>
	<!-- Bootstrap -->
	<script src="__JS__/bootstrap.min.js"></script>
	<!-- Placeholder -->
	<script src="__JS__/jquery.placeholder.min.js"></script>
	<!-- Waypoints -->
	<script src="__JS__/jquery.waypoints.min.js"></script>
	<!-- Main JS -->
	<script src="__JS__/main.js"></script>

	</body>
</html>
<script>
jQuery.validator.addMethod("isZipCode", function(value, element) {
		var tel = /^[0-9]{6}$/;
		return this.optional(element) || (tel.test(value));
	}, "请正确填写您的邮政编码");
$(function() {
	$("#form").validate({
		rules: {
			username: {
				required: true,
				minlength: 3
			},isZipCode:{
				isZipCode: true
			},password: {
				required: true,
				minlength: 3
			}
		}, messages: {
			username: {
				required: "---这是必填字段---",
				minlength: "---最少写5个字段---"
			}, password: {
				required: "---必填字段---",
				minlength: "---最少填3个字段---"
			}
		}
	})
});
</script>
